package com.rimi.bean;

import lombok.Data;

/**
 * @author chengliang
 */
@Data
public class Page {

    private int nowPage;
    private int pageSize;
    private int count;

    public int getStartLine(){
        if (nowPage <= 0){
            return 0;
        }
        return (nowPage-1)*pageSize;
    }

}
